package com.mail.dubbo.api;

import com.mail.model.db.UmsAdminRoleRelation;

import java.util.List;

/**
 * @author 吕永乐
 * @date 2022/06/21 17:01
 **/
public interface UmsAdminRoleRelationApi {
	/**
	 * 根据 adminId 查询
	 * @param userId
	 * @return
	 */
	List<UmsAdminRoleRelation> getByAdminId(Long userId);

	/**
	 * 批量删除
	 * @param adminId
	 */
	void removeByAdminId(Long adminId);

	/**
	 * 添加
	 * @param umsAdminRoleRelation
	 */
	void save(UmsAdminRoleRelation umsAdminRoleRelation);
}
